var baseConfig = require('./baseConfig')
var path = require("path")
var root = path.resolve(__dirname, "..")
var merge = require('webpack-merge')

var OpenBrowserPlugin = require('open-browser-webpack-plugin')

module.exports = merge(baseConfig, {
            output: {
                filename: "js/[name].bundle.js",
                path: path.join(root, "/dist"),
                    publicPath: "/static/",
                    pathinfo: true
                },
                devServer: {
                    inline: true,
                    progress: true,
                    port: 9090
                },
                devtool: 'eval-source-map',
                plugins: [
                    new OpenBrowserPlugin({
                        url: 'http://localhost:9090/static/'
                    })
                ]
            }

        )